#include <cxxomfort/base.hpp>
#include <cxxomfort/tuple.hpp>
#include <iostream>
#include <string>


int main()
{
	using namespace std;
	tuple<int, const char*, double>
    /*auto*/ t = std::make_tuple(1, "Foo", 3.14);
    // index-based access
    std::cout << "(" << std::get<0>(t) << ", " << std::get<1>(t)
              << ", " << std::get<2>(t) << ")\n";
    // type-based access (C++14 or later)
    int x = get<int>(t);
/*
    std::cout << "(" << std::get<int>(t) ;
	std::cout<< std::endl;
    std::cout << "(" << std::get<int>(t) << ", " 
		<< std::get<const char*>(t)
		<< ", " << std::get<double>(t) << ")\n";
*/
    // Note: std::tie and structured binding may also be used to decompose a tuple
}

